﻿CREATE TABLE [dbo].[vdn_tblDNIS] (
    [TransDnisId]      INT       IDENTITY (1, 1) NOT NULL,
    [Trans800ID]       INT       NULL,
    [CatId]            INT       NULL,
    [ProdGrpID]        INT       NULL,
    [BuyerID]          INT       NULL,
    [MediaRefNumber]   CHAR (15) NULL,
    [Station]          CHAR (6)  NULL,
    [Market]           CHAR (10) NULL,
    [Host]             CHAR (25) NULL,
    [DubSent]          DATETIME  NULL,
    [TurnUpDate]       DATETIME  NOT NULL,
    [TurnDnDate]       DATETIME  NULL,
    [DeActivationDate] DATETIME  NULL,
    [DNISID]           INT       NULL,
    [AdCopyId]         INT       NULL,
    [CostPerOrder]     MONEY     NULL,
    [NumberID]         INT       NULL,
    [CCntrID]          INT       NOT NULL
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defines a DNIS by it''s attributes', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'vdn_tblDNIS';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The category ID.  Links to vdn_MSTChannel', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'vdn_tblDNIS', @level2type = N'COLUMN', @level2name = N'CatId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The product group ID.  Links to vdn_MSTProdGroup.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'vdn_tblDNIS', @level2type = N'COLUMN', @level2name = N'ProdGrpID';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The buyer ID.  Links to vdn_MSTBuyer', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'vdn_tblDNIS', @level2type = N'COLUMN', @level2name = N'BuyerID';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Cost per order for Per-Order DNIS', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'vdn_tblDNIS', @level2type = N'COLUMN', @level2name = N'CostPerOrder';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Web ID assigned to this DNIS and placed in web links.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'vdn_tblDNIS', @level2type = N'COLUMN', @level2name = N'NumberID';

